package org.awa.demo.opencv.bean;

import org.locationtech.jts.geom.Geometry;

import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;

/**
 * @author xxf
 */
public class GeometryIntersectsBean  {
    private Geometry geometry;
    private List<GeometryIntersectsBean> linkGeometry = new ArrayList<>();

    public GeometryIntersectsBean(Geometry geometry){
        this.geometry = geometry;
    }

    public void addLink(GeometryIntersectsBean geometry){
        linkGeometry.add(geometry);
    }

    public Geometry getGeometry() {
        return geometry;
    }

    public List<GeometryIntersectsBean> getLink(){
        return linkGeometry;
    }

    public void clearLink(){
        linkGeometry.clear();
    }
}
